import request from './request'

//登录
const postLogin = params => request('api/login',params)

//登录
const getPersonalTable = params => request('api/personal',params)

//用户列表
const getUsersTable = params => request('api/users',params)

//管理员列表
const getAdminTable = params => request('api/admin',params)

//获取菜单
const getMenuTable  = params => request('api/menu',params)

//获取角色
const getRoleTable  = params => request('api/role',params)

//获取商品列表
const getShoppingTable  = params => request('api/shopping',params)

//获取订单列表
const getOrderTable  = params => request('api/order',params)

//导出
export{
    postLogin,
    getPersonalTable,
    getUsersTable,
    getAdminTable,
    getMenuTable,
    getRoleTable,
    getShoppingTable,
    getOrderTable
}